USE [BillManage]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Base_Water](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[FName] [varchar](100) NOT NULL,
	[FCName] [varchar](50) NULL,
	[FRate] [int] NOT NULL,
	[FUse] [bigint] NOT NULL,
	[FBalance] [decimal](18, 2) NOT NULL,
 CONSTRAINT [PK_Base_Water] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Base_Water] ADD  CONSTRAINT [DF_Base_Water_FRate]  DEFAULT ((0)) FOR [FRate]
GO

ALTER TABLE [dbo].[Base_Water] ADD  CONSTRAINT [DF_Base_Water_FUse]  DEFAULT ((0)) FOR [FUse]
GO

ALTER TABLE [dbo].[Base_Water] ADD  CONSTRAINT [DF_Base_Water_FBalance]  DEFAULT ((0)) FOR [FBalance]
GO

